package rest.entities;

import java.io.Serializable;
import java.util.Date;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;
import javax.xml.bind.annotation.XmlRootElement;

import com.google.appengine.api.datastore.Key;

@XmlRootElement
@PersistenceCapable
public class Application implements Serializable, JDOEntity {
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Key key;
	
	@Persistent
	private User user;
	

	@Persistent
	private Integer academicYear;
	@Persistent
	private Boolean isHlektrMathsh;
	@Persistent
	private Boolean isDiktya;
	@Persistent
	private Boolean isDiktyokentrika;
	@Persistent
	private String am;
	@Persistent
	private String name;
	@Persistent
	private String surname;
	@Persistent
	private Integer phone;
	@Persistent
	private Integer mobile;
	@Persistent
	private String email;
	@Persistent
	private String thematikiPerioxh;
	@Persistent
	private String teacher;
	@Persistent
	private Date dateSubmitted;

	public Application() {
	}


	public Application(Key key, User user, Integer academicYear,
			Boolean isHlektrMathsh, Boolean isDiktya, Boolean isDiktyokentrika,
			String am, String name, String surname, Integer phone,
			Integer mobile, String email, String thematikiPerioxh,
			String teacher, Date dateSubmitted) {
		super();
		this.key = key;
		this.user = user;
		this.academicYear = academicYear;
		this.isHlektrMathsh = isHlektrMathsh;
		this.isDiktya = isDiktya;
		this.isDiktyokentrika = isDiktyokentrika;
		this.am = am;
		this.name = name;
		this.surname = surname;
		this.phone = phone;
		this.mobile = mobile;
		this.email = email;
		this.thematikiPerioxh = thematikiPerioxh;
		this.teacher = teacher;
		this.dateSubmitted = dateSubmitted;
	}



	public Key getKey() {
		return key;
	}

	public void setKey(Key key) {
		this.key = key;
	}

	public Number getAcademicYear() {
		return academicYear;
	}

	public void setAcademicYear(Integer academicYear) {
		this.academicYear = academicYear;
	}

	public Boolean getIsHlektrMathsh() {
		return isHlektrMathsh;
	}

	public void setIsHlektrMathsh(Boolean isHlektrMathsh) {
		this.isHlektrMathsh = isHlektrMathsh;
	}

	public Boolean getIsDiktya() {
		return isDiktya;
	}

	public void setIsDiktya(Boolean isDiktya) {
		this.isDiktya = isDiktya;
	}

	public Boolean getIsDiktyokentrika() {
		return isDiktyokentrika;
	}

	public void setIsDiktyokentrika(Boolean isDiktyokentrika) {
		this.isDiktyokentrika = isDiktyokentrika;
	}

	public String getAm() {
		return am;
	}

	public void setAm(String am) {
		this.am = am;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSurname() {
		return surname;
	}

	public void setSurname(String surname) {
		this.surname = surname;
	}

	public Number getPhone() {
		return phone;
	}

	public void setPhone(Integer phone) {
		this.phone = phone;
	}

	public Number getMobile() {
		return mobile;
	}

	public void setMobile(Integer mobile) {
		this.mobile = mobile;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getThematikiPerioxh() {
		return thematikiPerioxh;
	}

	public void setThematikiPerioxh(String thematikiPerioxh) {
		this.thematikiPerioxh = thematikiPerioxh;
	}

	public String getTeacher() {
		return teacher;
	}

	public void setTeacher(String teacher) {
		this.teacher = teacher;
	}

	public Date getDateSubmitted() {
		return dateSubmitted;
	}

	public void setDateSubmitted(Date dateSubmitted) {
		this.dateSubmitted = dateSubmitted;
	}
	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

}
